﻿<UserControl x:Class="Ewav.TwoByTwoSC"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="800" d:DesignWidth="990"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" 
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
    DataContext="{Binding Source={StaticResource Locator}, Path=StatCalcViewModel}"
             xmlns:my="clr-namespace:ComponentArt.Silverlight.DataVisualization.Common;assembly=ComponentArt.Silverlight.DataVisualization.Common"
             >

    <UserControl.Resources>
        <Style x:Key="borderStyle" TargetType="Border">
            <Setter Property="BorderBrush" Value="#FFC4C4C4" />
            <Setter Property="BorderThickness" Value="1" />
            <Setter Property="Padding" Value="-1" />
            <Setter Property="Background" Value="White"/>
        </Style>
		<Style x:Key="RectBar" TargetType="Rectangle">
        <Setter Property="Fill">
            <Setter.Value>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <LinearGradientBrush.RelativeTransform>
                        <CompositeTransform CenterY="0.5" CenterX="0.5" Rotation="90"/>
                    </LinearGradientBrush.RelativeTransform>
                    <GradientStop Color="#FFAECFEA" Offset="1"/>
                    <GradientStop Color="#FF3486C9" Offset="0"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Stroke" Value="#FFAECFEA"/>
        <Setter Property="Height" Value="20"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="Margin" Value="0,4"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Projection">
            <Setter.Value>
                <PlaneProjection/>
            </Setter.Value>
        </Setter>
        <Setter Property="RenderTransform">
            <Setter.Value>
                <CompositeTransform/>
            </Setter.Value>
        </Setter>

    </Style>
   <!-- <Style x:Key="HeaderCell" TargetType="Rectangle">
        <Setter Property="Stroke" Value="#FFB0B0B0"/>
        <Setter Property="StrokeThickness" Value="0.4"/>
        <Setter Property="Fill">
            <Setter.Value>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <LinearGradientBrush.RelativeTransform>
                        <CompositeTransform CenterY="0.5" CenterX="0.5"/>
                    </LinearGradientBrush.RelativeTransform>
                    <GradientStop Color="#FFC3E085" Offset="0"/>
                    <GradientStop Color="#FFC3E085" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
    </Style>-->
    <Style x:Key="HeaderFont" TargetType="TextBlock">
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="FontFamily" Value="Segoe UI"/>
		<Setter Property="Foreground" Value="#FF2b4360" />
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="Margin" Value="4"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
    </Style>
    <!--<Style x:Key="DataCell" TargetType="Rectangle">
        <Setter Property="Stroke" Value="#FFB0B0B0"/>
            <Setter Property="StrokeThickness" Value="0.4"/>
        </Style>-->

    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="White" MouseRightButtonDown="LayoutRoot_MouseRightButtonDown"           
		  MouseLeftButtonDown="LayoutRoot_MouseLeftButtonDown">

        <Grid x:Name="GadgetWindow" Background="White" MinWidth="500" MinHeight="30" >
            <Rectangle x:Name="GWindow" Style="{StaticResource GWindow}" Stroke="{StaticResource WindowBrush}" StrokeThickness="4" />
        	<StackPanel HorizontalAlignment="Left" VerticalAlignment="Top" Margin="13,11,0,20" d:LayoutOverrides="VerticalAlignment, GridBox">
        		<TextBlock x:Name="GName" TextWrapping="Wrap" VerticalAlignment="Top" Margin="0,0,26,0" Height="Auto" HorizontalAlignment="Left" Foreground="#FF2B4360" FontSize="21.333" 
				Text="StatCalc - 2 x 2 Tables"/>

        		<Rectangle x:Name="GHeader" VerticalAlignment="Top" Height="4" Margin="0,2,0,0" StrokeThickness="0" Fill="#FF00B050" />	
        	</StackPanel>
        	<StackPanel HorizontalAlignment="Right" Orientation="Horizontal" VerticalAlignment="Top" Margin="0,9,10,20">
        		<Button x:Name="ResizeButton" Content="" Template="{StaticResource resizebtn}" Cursor="Hand" Click="ResizeButton_Click" Width="24" Height="24" >
        			<Button.Effect>
        				<DropShadowEffect Color="#FFB0B0B0" ShadowDepth="1"/>
        			</Button.Effect>
        		</Button>
        		<Button x:Name="CloseButton1" Content="" Template="{StaticResource CloseButton}" Cursor="Hand" Click="CloseGadget_Click" Width="24" Height="24" >
        			<Button.Effect>
        				<DropShadowEffect Color="#FFB0B0B0" ShadowDepth="1"/>
        			</Button.Effect>
        		</Button>
        	</StackPanel>
        	<Grid x:Name="GadgetContentGrid" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,47,0,0">

                
        		<Grid x:Name="grdAll" Margin="13,15,20,20">
        			<Grid.ColumnDefinitions>
        				<ColumnDefinition Width="555"/>
        				<ColumnDefinition/>
        			</Grid.ColumnDefinitions>
                    
        			<StackPanel x:Name="stackPanel" Margin="0,0,-33,0">
                        
                        
        				<StackPanel Orientation="Horizontal" VerticalAlignment="Top" Width="555" Height="30">
        					<Button x:Name="Strata1" Content="Strata 1" Style="{StaticResource btnprimary}" Width="60" Click="Strata_Click" Cursor="Hand" FontSize="12" Height="30"/>
        					<Button x:Name="Strata2" Content="Strata 2" Width="60"  Click="Strata_Click" Cursor="Hand" FontSize="12" Height="30"/>
        					<Button x:Name="Strata3" Content="Strata 3" Width="60"  Click="Strata_Click" Cursor="Hand" FontSize="12" Height="30"/>
        					<Button x:Name="Strata4" Content="Strata 4" Width="60"  Click="Strata_Click" Cursor="Hand" FontSize="12" Height="30"/>
        					<Button x:Name="Strata5" Content="Strata 5" Width="60"  Click="Strata_Click" Cursor="Hand" FontSize="12" Height="30"/>
        					<Button x:Name="Strata6" Content="Strata 6" Width="60"  Click="Strata_Click" Cursor="Hand" FontSize="12" Height="30"/>
        					<Button x:Name="Strata7" Content="Strata 7" Width="60"  Click="Strata_Click" Cursor="Hand" FontSize="12" Height="30"/>
        					<Button x:Name="Strata8" Content="Strata 8" Width="60"  Click="Strata_Click" Cursor="Hand" FontSize="12" Height="30"/>
        					<Button x:Name="Strata9" Content="Strata 9" Width="60"  Click="Strata_Click" Cursor="Hand" FontSize="12" Height="30"/>
                        
                        
        				</StackPanel>
        				<Rectangle Height="2" Width="570" HorizontalAlignment="Left" Margin="0,-2,0,0" Fill="#FF000000" StrokeThickness="2"/>
        				<StackPanel x:Name="spStrata1" HorizontalAlignment="Left" VerticalAlignment="Top">
        					<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
        						<TextBlock x:Name="txtExposure1" FontWeight="Bold" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0" TextAlignment="Center" Foreground="#FF2B4360">
        							<TextBlock.RenderTransform>
        								<CompositeTransform Rotation="-90" TranslateY="37"/>
        							</TextBlock.RenderTransform>
        						</TextBlock>
        						<Grid x:Name="grdTables1" HorizontalAlignment="Center" Margin="-100,10,10,10">
        							<Grid.RowDefinitions>
        								<RowDefinition Height="20"/>
        								<RowDefinition Height="30"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        							</Grid.RowDefinitions>
        							<Grid.ColumnDefinitions>
        								<ColumnDefinition Width="55"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        							</Grid.ColumnDefinitions>

        							<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="3" Style="{StaticResource DataCell}"/>

        							<TextBlock FontWeight="Bold" x:Name="txtOutcome" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0" Foreground="#FF2B4360"/>

        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"/>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="2" Grid.Column="1">
        								<TextBox x:Name="txtYesYesVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesYesRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesYesCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="2" Grid.Column="2">
        								<TextBox x:Name="txtYesNoVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesNoRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesNoCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="3" Grid.Column="1">
        								<TextBox x:Name="txtNoYesVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoYesRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoYesCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="4" Grid.Column="1">
        								<TextBlock x:Name="txtTotalYesVal1" Margin="2, 2, 2, 2" VerticalAlignment="Top" HorizontalAlignment="Right" Height="30" Width="50"  FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalYesRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalYesCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="3" Grid.Column="2">
        								<TextBox x:Name="txtNoNoVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoNoRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoNoCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="4" Grid.Column="2">
        								<TextBlock x:Name="txtTotalNoVal1" Margin="2, 2, 2, 2" VerticalAlignment="Top" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalNoRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalNoCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="2" Grid.Column="3">
        								<TextBlock x:Name="txtYesTotalVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesTotalRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesTotalCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="3" Grid.Column="3">
        								<TextBlock x:Name="txtNoTotalVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoTotalRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoTotalCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="4" Grid.Column="3">
        								<TextBlock x:Name="txtTotalTotalVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalTotalRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalTotalCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>
        						</Grid>
        					</StackPanel>
        					<StackPanel x:Name="pnlAdvanced" HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
        						<StackPanel x:Name="pnlParameters" HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Odds-based Parameters"/></TextBlock>
        								<Grid x:Name="grdParameters" HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#xa;(Mid-P)"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioEstimate1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioLower1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioUpper1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPEstimate1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPLower1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPUpper1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherEstimate1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherLower1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherUpper1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Risk-based Parameters"/></TextBlock>
        								<Grid x:Name="grdRiskParameters" HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioEstimate1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioLower1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioUpper1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceEstimate1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceLower1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceUpper1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        						<StackPanel x:Name="pnlTests" HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Statistical Tests"/></TextBlock>
        								<Grid x:Name="grdTests1" HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="{Binding ColumnDefinitions[1].Width, ElementName=grd1PTests}" MinWidth="70"/>
        										<ColumnDefinition Width="{Binding ColumnDefinitions[2].Width, ElementName=grd1PTests}" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock Grid.Row="0" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1"><Run Text="X"/><Run Typography.Variants="Superscript" Text="2"/></TextBlock>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncVal1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncP1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2"  />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManVal1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManP1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2"  />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorVal1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorP1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
                                        <TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text=""/></TextBlock>
                                        <Grid x:Name="grd1PTests" HorizontalAlignment="left"  Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="100" />
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
                                                <ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock Grid.Row="1" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
        									<TextBlock Grid.Row="2" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPExact1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherExact1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="6, 0, 6, 0" x:Name="txtFisherExact2P1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        					</StackPanel>
        				</StackPanel>
        				<StackPanel x:Name="spStrata2" VerticalAlignment="Top" Visibility="Collapsed">
        					<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
        						<TextBlock x:Name="txtExposure2" FontWeight="Bold" Foreground="#FF2B4360" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0" TextAlignment="Center">
        							<TextBlock.RenderTransform>
        								<CompositeTransform Rotation="-90" TranslateY="37"/>
        							</TextBlock.RenderTransform></TextBlock>
        						<Grid x:Name="grdTables2" HorizontalAlignment="Center" Margin="-100,10,10,10">
        							<Grid.RowDefinitions>
        								<RowDefinition Height="20"/>
        								<RowDefinition Height="30"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        							</Grid.RowDefinitions>
        							<Grid.ColumnDefinitions>
        								<ColumnDefinition Width="55"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        							</Grid.ColumnDefinitions>

        							<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="3" Style="{StaticResource DataCell}"/>

        							<TextBlock FontWeight="Bold" x:Name="txtOutcome2" Foreground="#FF2B4360" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"/>

        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"/>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="2" Grid.Column="1">
        								<TextBox x:Name="txtYesYesVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesYesRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesYesCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="2" Grid.Column="2">
        								<TextBox x:Name="txtYesNoVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesNoRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesNoCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="3" Grid.Column="1">
        								<TextBox x:Name="txtNoYesVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoYesRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoYesCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="4" Grid.Column="1">
        								<TextBlock x:Name="txtTotalYesVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalYesRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalYesCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="3" Grid.Column="2">
        								<TextBox x:Name="txtNoNoVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoNoRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoNoCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="4" Grid.Column="2">
        								<TextBlock x:Name="txtTotalNoVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalNoRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalNoCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="3">
        								<TextBlock x:Name="txtYesTotalVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesTotalRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesTotalCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="3">
        								<TextBlock x:Name="txtNoTotalVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoTotalRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoTotalCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="3">
        								<TextBlock x:Name="txtTotalTotalVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalTotalRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalTotalCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>
        						</Grid>
        					</StackPanel>
        					<StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Odds-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#xa;(Mid-P)"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioEstimate2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioLower2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioUpper2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPEstimate2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPLower2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPUpper2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherEstimate2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherLower2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherUpper2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Risk-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioEstimate2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioLower2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioUpper2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceEstimate2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceLower2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceUpper2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Statistical Tests"/></TextBlock>
        								<Grid  x:Name="grdTests2" HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock Grid.Row="0" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1"><Run Text="X"/><Run Typography.Variants="Superscript" Text="2"/></TextBlock>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncVal2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncP2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManVal2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManP2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorVal2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorP2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
                                        <TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text=""/></TextBlock>
                                        <Grid HorizontalAlignment="Left"  Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100" />
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock Grid.Row="1" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
        									<TextBlock Grid.Row="2" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPExact2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherExact2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="6, 0, 6, 0" x:Name="txtFisherExact2P2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        					</StackPanel>
        				</StackPanel>
        				<StackPanel x:Name="spStrata3" Visibility="Collapsed" VerticalAlignment="Top">
        					<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
        						<TextBlock x:Name="txtExposure3" FontWeight="Bold" Foreground="#FF2B4360" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0" TextAlignment="Center">
        							<TextBlock.RenderTransform>
        								<CompositeTransform Rotation="-90" TranslateY="37"/>
        							</TextBlock.RenderTransform></TextBlock>
        						<Grid x:Name="grdTables3" HorizontalAlignment="Center" Margin="-100,10,10,10">
        							<Grid.RowDefinitions>
        								<RowDefinition Height="20"/>
        								<RowDefinition Height="30"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        							</Grid.RowDefinitions>
        							<Grid.ColumnDefinitions>
        								<ColumnDefinition Width="55"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        							</Grid.ColumnDefinitions>

        							<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="3" Style="{StaticResource DataCell}"/>

        							<TextBlock FontWeight="Bold" x:Name="txtOutcome3" Foreground="#FF2B4360" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"/>

        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"/>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="2" Grid.Column="1">
        								<TextBox x:Name="txtYesYesVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesYesRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesYesCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="2" Grid.Column="2">
        								<TextBox x:Name="txtYesNoVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesNoRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesNoCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="3" Grid.Column="1">
        								<TextBox x:Name="txtNoYesVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoYesRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoYesCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="4" Grid.Column="1">
        								<TextBlock x:Name="txtTotalYesVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalYesRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalYesCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="3" Grid.Column="2">
        								<TextBox x:Name="txtNoNoVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoNoRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoNoCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="4" Grid.Column="2">
        								<TextBlock x:Name="txtTotalNoVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalNoRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalNoCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="2" Grid.Column="3">
        								<TextBlock x:Name="txtYesTotalVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesTotalRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesTotalCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="3" Grid.Column="3">
        								<TextBlock x:Name="txtNoTotalVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoTotalRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoTotalCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="4" Grid.Column="3">
        								<TextBlock x:Name="txtTotalTotalVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalTotalRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalTotalCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>
        						</Grid>
        					</StackPanel>
        					<StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Odds-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#xa;(Mid-P)"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioEstimate3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioLower3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioUpper3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPEstimate3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPLower3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPUpper3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherEstimate3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherLower3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherUpper3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Risk-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioEstimate3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioLower3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioUpper3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceEstimate3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceLower3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceUpper3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Statistical Tests"/></TextBlock>
        								<Grid x:Name="grdTests3"  HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock Grid.Row="0" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" ><Run Text="X"/><Run Typography.Variants="Superscript" Text="2"/></TextBlock>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncVal3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncP3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManVal3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManP3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorVal3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorP3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
                                        <TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text=""/></TextBlock>
                                        <Grid HorizontalAlignment="Left"  Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="100" />
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock Grid.Row="1" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
        									<TextBlock Grid.Row="2" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPExact3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherExact3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="6, 0, 6, 0" x:Name="txtFisherExact2P3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        					</StackPanel>
        				</StackPanel>
        				<StackPanel x:Name="spStrata4" Visibility="Collapsed" VerticalAlignment="Top">
        					<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
        						<TextBlock x:Name="txtExposure4" FontWeight="Bold" Foreground="#FF2B4360" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0" TextAlignment="Center">
        							<TextBlock.RenderTransform>
        								<CompositeTransform Rotation="-90" TranslateY="37"/>
        							</TextBlock.RenderTransform></TextBlock>
        						<Grid x:Name="grdTables4" HorizontalAlignment="Center" Margin="-100,10,10,10">
        							<Grid.RowDefinitions>
        								<RowDefinition Height="20"/>
        								<RowDefinition Height="30"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        							</Grid.RowDefinitions>
        							<Grid.ColumnDefinitions>
        								<ColumnDefinition Width="55"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        							</Grid.ColumnDefinitions>

        							<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="3" Style="{StaticResource DataCell}"/>

        							<TextBlock FontWeight="Bold" x:Name="txtOutcome4" Foreground="#FF2B4360" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"/>

        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"/>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="1">
        								<TextBox x:Name="txtYesYesVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesYesRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesYesCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="2">
        								<TextBox x:Name="txtYesNoVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesNoRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesNoCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="1">
        								<TextBox x:Name="txtNoYesVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoYesRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoYesCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="1">
        								<TextBlock x:Name="txtTotalYesVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalYesRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalYesCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="2">
        								<TextBox x:Name="txtNoNoVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoNoRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoNoCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="2">
        								<TextBlock x:Name="txtTotalNoVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalNoRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalNoCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="3">
        								<TextBlock x:Name="txtYesTotalVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesTotalRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesTotalCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="3">
        								<TextBlock x:Name="txtNoTotalVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoTotalRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoTotalCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="3">
        								<TextBlock x:Name="txtTotalTotalVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalTotalRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalTotalCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>
        						</Grid>
        					</StackPanel>
        					<StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Odds-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#xa;(Mid-P)"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioEstimate4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioLower4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioUpper4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPEstimate4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPLower4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPUpper4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherEstimate4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherLower4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherUpper4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Risk-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioEstimate4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioLower4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioUpper4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceEstimate4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceLower4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceUpper4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Statistical Tests"/></TextBlock>
        								<Grid  x:Name="grdTests4"  HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock Grid.Row="0" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" ><Run Text="X"/><Run Typography.Variants="Superscript" Text="2"/></TextBlock>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncVal4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncP4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManVal4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManP4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorVal4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorP4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
                                        <TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text=""/></TextBlock>
                                        <Grid HorizontalAlignment="Left"  Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="100" />
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock Grid.Row="1" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
        									<TextBlock Grid.Row="2" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPExact4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherExact4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="6, 0, 6, 0" x:Name="txtFisherExact2P4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        					</StackPanel>
        				</StackPanel>
        				<StackPanel x:Name="spStrata5" Visibility="Collapsed" VerticalAlignment="Top">
        					<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
        						<TextBlock x:Name="txtExposure5" FontWeight="Bold" Foreground="#FF2B4360" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0" TextAlignment="Center">
        							<TextBlock.RenderTransform>
        								<CompositeTransform Rotation="-90" TranslateY="37"/>
        							</TextBlock.RenderTransform></TextBlock>
        						<Grid x:Name="grdTables5" HorizontalAlignment="Center" Margin="-100,10,10,10">
        							<Grid.RowDefinitions>
        								<RowDefinition Height="20"/>
        								<RowDefinition Height="30"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        							</Grid.RowDefinitions>
        							<Grid.ColumnDefinitions>
        								<ColumnDefinition Width="55"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        							</Grid.ColumnDefinitions>

        							<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="3" Style="{StaticResource DataCell}"/>

        							<TextBlock FontWeight="Bold" x:Name="txtOutcome5" Foreground="#FF2B4360" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"/>

        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"/>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="1">
        								<TextBox x:Name="txtYesYesVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesYesRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesYesCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="2">
        								<TextBox x:Name="txtYesNoVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesNoRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesNoCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="1">
        								<TextBox x:Name="txtNoYesVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoYesRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoYesCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="1">
        								<TextBlock x:Name="txtTotalYesVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalYesRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalYesCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="2">
        								<TextBox x:Name="txtNoNoVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoNoRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoNoCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="2">
        								<TextBlock x:Name="txtTotalNoVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalNoRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalNoCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="3">
        								<TextBlock x:Name="txtYesTotalVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesTotalRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesTotalCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="3">
        								<TextBlock x:Name="txtNoTotalVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoTotalRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoTotalCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="3">
        								<TextBlock x:Name="txtTotalTotalVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalTotalRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalTotalCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>
        						</Grid>
        					</StackPanel>
        					<StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Odds-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#xa;(Mid-P)"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioEstimate5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioLower5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioUpper5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPEstimate5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPLower5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPUpper5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherEstimate5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherLower5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherUpper5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Risk-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioEstimate5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioLower5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioUpper5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceEstimate5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceLower5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceUpper5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Statistical Tests"/></TextBlock>
        								<Grid  x:Name="grdTests5" HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock Grid.Row="0" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1"><Run Text="X"/><Run Typography.Variants="Superscript" Text="2"/></TextBlock>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncVal5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncP5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManVal5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManP5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorVal5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorP5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
                                        <TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text=""/></TextBlock>
                                        <Grid HorizontalAlignment="Left"  Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="100" />
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock Grid.Row="1" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
        									<TextBlock Grid.Row="2" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPExact5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherExact5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="6, 0, 6, 0" x:Name="txtFisherExact2P5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        					</StackPanel>
        				</StackPanel>
        				<!--<sdk:TabItem x:Name="Tab6" Header="Strata 6">
                            <Grid>-->
        				<StackPanel x:Name="spStrata6" VerticalAlignment="Top" Visibility="Collapsed">
        					<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
        						<TextBlock x:Name="txtExposure6" FontWeight="Bold" Foreground="#FF2B4360" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0" TextAlignment="Center">
        							<TextBlock.RenderTransform>
        								<CompositeTransform Rotation="-90" TranslateY="37"/>
        							</TextBlock.RenderTransform>
        						</TextBlock>
        						<Grid x:Name="grdTables6" HorizontalAlignment="Center" Margin="-100,10,10,10">
        							<Grid.RowDefinitions>
        								<RowDefinition Height="20"/>
        								<RowDefinition Height="30"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        							</Grid.RowDefinitions>
        							<Grid.ColumnDefinitions>
        								<ColumnDefinition Width="55"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        							</Grid.ColumnDefinitions>

        							<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="3" Style="{StaticResource DataCell}"/>

        							<TextBlock FontWeight="Bold" x:Name="txtOutcome6" Foreground="#FF2B4360" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"/>

        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"/>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="1">
        								<TextBox x:Name="txtYesYesVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesYesRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesYesCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="2">
        								<TextBox x:Name="txtYesNoVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesNoRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesNoCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="1">
        								<TextBox x:Name="txtNoYesVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoYesRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoYesCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="1">
        								<TextBlock x:Name="txtTotalYesVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalYesRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalYesCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="2">
        								<TextBox x:Name="txtNoNoVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoNoRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoNoCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="2">
        								<TextBlock x:Name="txtTotalNoVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalNoRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalNoCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="3">
        								<TextBlock x:Name="txtYesTotalVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesTotalRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesTotalCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="3">
        								<TextBlock x:Name="txtNoTotalVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoTotalRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoTotalCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="3">
        								<TextBlock x:Name="txtTotalTotalVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalTotalRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalTotalCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>
        						</Grid>
        					</StackPanel>
        					<StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Odds-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#xa;(Mid-P)"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioEstimate6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioLower6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioUpper6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPEstimate6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPLower6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPUpper6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherEstimate6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherLower6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherUpper6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Risk-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioEstimate6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioLower6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioUpper6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceEstimate6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceLower6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceUpper6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Statistical Tests"/></TextBlock>
        								<Grid x:Name="grdTests6"  HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock Grid.Row="0" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" ><Run Text="X"/><Run Typography.Variants="Superscript" Text="2"/></TextBlock>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncVal6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncP6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManVal6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManP6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorVal6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorP6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
                                        <TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text=""/></TextBlock>
                                        <Grid HorizontalAlignment="Left"  Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="100" />
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock Grid.Row="1" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
        									<TextBlock Grid.Row="2" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPExact6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherExact6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="6, 0, 6, 0" x:Name="txtFisherExact2P6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        					</StackPanel>
        				</StackPanel>
        				<StackPanel x:Name="spStrata7" VerticalAlignment="Top" Visibility="Collapsed">
        					<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
        						<TextBlock x:Name="txtExposure7" FontWeight="Bold" Foreground="#FF2B4360" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0" TextAlignment="Center">
        							<TextBlock.RenderTransform>
        								<CompositeTransform Rotation="-90" TranslateY="37"/>
        							</TextBlock.RenderTransform></TextBlock>
        						<Grid x:Name="grdTables7" HorizontalAlignment="Center" Margin="-100,10,10,10">
        							<Grid.RowDefinitions>
        								<RowDefinition Height="20"/>
        								<RowDefinition Height="30"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        							</Grid.RowDefinitions>
        							<Grid.ColumnDefinitions>
        								<ColumnDefinition Width="55"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        							</Grid.ColumnDefinitions>

        							<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="3" Style="{StaticResource DataCell}"/>

        							<TextBlock FontWeight="Bold" x:Name="txtOutcome7" Foreground="#FF2B4360" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"/>

        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"/>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="1">
        								<TextBox x:Name="txtYesYesVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesYesRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesYesCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="2">
        								<TextBox x:Name="txtYesNoVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesNoRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesNoCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="1">
        								<TextBox x:Name="txtNoYesVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoYesRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoYesCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="1">
        								<TextBlock x:Name="txtTotalYesVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalYesRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalYesCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="2">
        								<TextBox x:Name="txtNoNoVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoNoRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoNoCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="2">
        								<TextBlock x:Name="txtTotalNoVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalNoRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalNoCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="3">
        								<TextBlock x:Name="txtYesTotalVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesTotalRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesTotalCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="3">
        								<TextBlock x:Name="txtNoTotalVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoTotalRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoTotalCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="3">
        								<TextBlock x:Name="txtTotalTotalVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalTotalRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalTotalCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>
        						</Grid>
        					</StackPanel>
        					<StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Odds-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#xa;(Mid-P)"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioEstimate7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioLower7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioUpper7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPEstimate7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPLower7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPUpper7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherEstimate7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherLower7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherUpper7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Risk-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioEstimate7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioLower7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioUpper7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceEstimate7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceLower7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceUpper7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Statistical Tests"/></TextBlock>
        								<Grid  x:Name="grdTests7" HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock Grid.Row="0" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" ><Run Text="X"/><Run Typography.Variants="Superscript" Text="2"/></TextBlock>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncVal7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncP7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManVal7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManP7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorVal7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorP7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
                                        <TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text=""/></TextBlock>
                                        <Grid HorizontalAlignment="Left"  Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="100" />
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock Grid.Row="1" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
        									<TextBlock Grid.Row="2" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPExact7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherExact7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="6, 0, 6, 0" x:Name="txtFisherExact2P7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        					</StackPanel>
        				</StackPanel>
        				<!--<sdk:TabItem x:Name="Tab8" Header="Strata 8">
                            <Grid>-->
        				<StackPanel x:Name="spStrata8" VerticalAlignment="Top" Visibility="Collapsed">
        					<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
        						<TextBlock x:Name="txtExposure8" FontWeight="Bold" Foreground="#FF2B4360" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0" TextAlignment="Center">
        							<TextBlock.RenderTransform>
        								<CompositeTransform Rotation="-90" TranslateY="37"/>
        							</TextBlock.RenderTransform></TextBlock>
        						<Grid x:Name="grdTables8" HorizontalAlignment="Center" Margin="-100,10,10,10">
        							<Grid.RowDefinitions>
        								<RowDefinition Height="20"/>
        								<RowDefinition Height="30"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        							</Grid.RowDefinitions>
        							<Grid.ColumnDefinitions>
        								<ColumnDefinition Width="55"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        							</Grid.ColumnDefinitions>

        							<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="3" Style="{StaticResource DataCell}"/>

        							<TextBlock FontWeight="Bold" x:Name="txtOutcome8" Foreground="#FF2B4360" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"/>

        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"/>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="1">
        								<TextBox x:Name="txtYesYesVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesYesRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesYesCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="2">
        								<TextBox x:Name="txtYesNoVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesNoRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesNoCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="1">
        								<TextBox x:Name="txtNoYesVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoYesRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoYesCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="1">
        								<TextBlock x:Name="txtTotalYesVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalYesRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalYesCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="2">
        								<TextBox x:Name="txtNoNoVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoNoRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoNoCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="2">
        								<TextBlock x:Name="txtTotalNoVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalNoRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalNoCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="3">
        								<TextBlock x:Name="txtYesTotalVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesTotalRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesTotalCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="3">
        								<TextBlock x:Name="txtNoTotalVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoTotalRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoTotalCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="3">
        								<TextBlock x:Name="txtTotalTotalVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalTotalRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalTotalCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>
        						</Grid>
        					</StackPanel>
        					<StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Odds-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#xa;(Mid-P)"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioEstimate8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioLower8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioUpper8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPEstimate8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPLower8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPUpper8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherEstimate8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherLower8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherUpper8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Risk-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioEstimate8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioLower8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioUpper8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceEstimate8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceLower8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceUpper8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Statistical Tests"/></TextBlock>
        								<Grid x:Name="grdTests8"  HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock Grid.Row="0" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" ><Run Text="X"/><Run Typography.Variants="Superscript" Text="2"/></TextBlock>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncVal8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncP8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManVal8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManP8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorVal8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorP8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
                                        <TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text=""/></TextBlock>
                                        <Grid HorizontalAlignment="Left"  Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="100" />
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock Grid.Row="1" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
        									<TextBlock Grid.Row="2" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPExact8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherExact8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="6, 0, 6, 0" x:Name="txtFisherExact2P8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        					</StackPanel>
        				</StackPanel>
        				<!--<sdk:TabItem x:Name="Tab9" Header="Strata 9" BorderThickness="1,1,1,0">
                            <Grid>-->
        				<StackPanel x:Name="spStrata9" VerticalAlignment="Top" Visibility="Collapsed">
        					<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
        						<TextBlock x:Name="txtExposure9" FontWeight="Bold" Foreground="#FF2B4360" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0" TextAlignment="Center">
        							<TextBlock.RenderTransform>
        								<CompositeTransform Rotation="-90" TranslateY="37"/>
        							</TextBlock.RenderTransform></TextBlock>
        						<Grid x:Name="grdTables9" HorizontalAlignment="Center" Margin="-100,10,10,10">
        							<Grid.RowDefinitions>
        								<RowDefinition Height="20"/>
        								<RowDefinition Height="30"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        								<RowDefinition Height="Auto" MinHeight="77"/>
        							</Grid.RowDefinitions>
        							<Grid.ColumnDefinitions>
        								<ColumnDefinition Width="55"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        								<ColumnDefinition Width="Auto"/>
        							</Grid.ColumnDefinitions>

        							<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="2" Style="{StaticResource DataCell}"/>
        							<Rectangle Grid.Row="4" Grid.Column="3" Style="{StaticResource DataCell}"/>

        							<TextBlock FontWeight="Bold" x:Name="txtOutcome9" Foreground="#FF2B4360" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"/>

        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"/>
        							<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"/>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="2" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="0">
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"/>
        								<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"/>
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="2" Grid.Column="1">
        								<TextBox x:Name="txtYesYesVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesYesRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesYesCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="2" Grid.Column="2">
        								<TextBox x:Name="txtYesNoVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesNoRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesNoCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="3" Grid.Column="1">
        								<TextBox x:Name="txtNoYesVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoYesRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoYesCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="4" Grid.Column="1">
        								<TextBlock x:Name="txtTotalYesVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalYesRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalYesCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="3" Grid.Column="2">
        								<TextBox x:Name="txtNoNoVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontFamily="Microsoft Sans Serif" FontSize="19" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoNoRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoNoCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2,2,2,0" VerticalAlignment="Top" Grid.Row="4" Grid.Column="2">
        								<TextBlock x:Name="txtTotalNoVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalNoRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalNoCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="2" Grid.Column="3">
        								<TextBlock x:Name="txtYesTotalVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtYesTotalRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtYesTotalCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="3" Grid.Column="3">
        								<TextBlock x:Name="txtNoTotalVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtNoTotalRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtNoTotalCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>

        							<StackPanel Margin="2, 2, 2, 2" VerticalAlignment="Top" Grid.Row="4" Grid.Column="3">
        								<TextBlock x:Name="txtTotalTotalVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
        								<TextBlock x:Name="txtTotalTotalRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        								<TextBlock x:Name="txtTotalTotalCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" />
        							</StackPanel>
        						</Grid>
        					</StackPanel>
        					<StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Odds-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#xa;(Mid-P)"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioEstimate9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioLower9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtOddsRatioUpper9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPEstimate9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPLower9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPUpper9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherEstimate9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherLower9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherUpper9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Risk-based Parameters"/></TextBlock>
        								<Grid HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        										<ColumnDefinition Width="60"/>
        									</Grid.ColumnDefinitions>
        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioEstimate9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioLower9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskRatioUpper9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceEstimate9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceLower9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtRiskDifferenceUpper9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        						<StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
        							<StackPanel>
        								<TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text="Statistical Tests"/></TextBlock>
        								<Grid  x:Name="grdTests9" HorizontalAlignment="Left" Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
        										<ColumnDefinition Width="100"/>
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock Grid.Row="0" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" ><Run Text="X"/><Run Typography.Variants="Superscript" Text="2"/></TextBlock>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncVal9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqUncP9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManVal9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqManP9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorVal9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtChiSqCorP9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        							<StackPanel>
                                        <TextBlock FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF2B4360"><Run Text=""/></TextBlock>
                                        <Grid HorizontalAlignment="Left"  Margin="5,5,5,5">
        									<Grid.RowDefinitions>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        										<RowDefinition Height="30"/>
        									</Grid.RowDefinitions>
        									<Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="100" />
        										<ColumnDefinition Width="Auto" MinWidth="70"/>
        										<ColumnDefinition Width="Auto" MinWidth="90"/>
        									</Grid.ColumnDefinitions>

        									<Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="0" Grid.Column="2" Style="{StaticResource HeaderCell}"/>

        									<Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        									<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>

        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
        									<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

        									<TextBlock Grid.Row="1" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
        									<TextBlock Grid.Row="2" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtMidPExact9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
        									<TextBlock Margin="2, 0, 2, 0" x:Name="txtFisherExact9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        									<TextBlock Margin="6, 0, 6, 0" x:Name="txtFisherExact2P9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        								</Grid>
        							</StackPanel>
        						</StackPanel>
        					</StackPanel>
        				</StackPanel>
        				<!--</Grid>
                        </sdk:TabItem>
                        <sdk:TabItem x:Name="Tab4" Header="Strata 4">
                            <Grid>-->
        				<!--<sdk:TabItem x:Name="Tab2" Header="Strata 2">
                            <Grid>-->
        				<!--</Grid>
                        </sdk:TabItem>
                        <sdk:TabItem x:Name="Tab3" Header="Strata 3">
                            <Grid>-->
        				<!--<sdk:TabItem x:Name="Tab1" Header="Strata 1">
                            <Grid>-->
        			</StackPanel>
        			<!--</sdk:TabControl>-->
        			<Grid Grid.Column="1" VerticalAlignment="Top" Margin="40,50,8,0" HorizontalAlignment="Center">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width="100"/>
        					<ColumnDefinition Width="Auto"  MinWidth="80"/>
        					<ColumnDefinition Width="Auto" MinWidth="80"/>
        					<ColumnDefinition Width="Auto" MinWidth="80"/>
        				</Grid.ColumnDefinitions>
        				<Grid.RowDefinitions>
        					<RowDefinition Height="30"/>
        					<RowDefinition Height="30"/>
        					<RowDefinition Height="30"/>
        					<RowDefinition Height="30"/>
        					<RowDefinition Height="30"/>
        					<RowDefinition Height="30"/>
        					<RowDefinition Height="30"/>
        					<RowDefinition Height="30"/>
        					<RowDefinition Height="30"/>
        					<RowDefinition Height="30"/>
        					<RowDefinition Height="30"/>
        					<RowDefinition Height="30"/>
        					<RowDefinition Height="30"/>
        					<RowDefinition Height="30"/>
        					<RowDefinition Height="30"/>
        				</Grid.RowDefinitions>
        				<TextBlock FontWeight="Bold" Foreground="#FF2B4360" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="4" Text="Summary Results"/>
        				<TextBlock FontWeight="Bold" Foreground="#FF2B4360" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
        				<Rectangle Grid.Row="1" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="1" Grid.Column="1" Text="Estimate"/>
        				<Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="1" Grid.Column="2" Text="Lower"/>
        				<Rectangle Grid.Row="1" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="1" Grid.Column="3" Text="Upper"/>

        				<Rectangle Grid.Row="2" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Crude&#xa;(Cross Product)"/>
        				<Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratCrudeOr" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
        				<Rectangle Grid.Row="2" Grid.Column="2" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratCrudeOrLower" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
        				<Rectangle Grid.Row="2" Grid.Column="3" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratCrudeOrUpper" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

        				<Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Crude (MLE)"/>
        				<Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratCrudeMle" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
        				<Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratCrudeMleLower" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
        				<Rectangle Grid.Row="3" Grid.Column="3" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratCrudeMleUpper" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />

        				<Rectangle Grid.Row="4" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0" Text="Fisher-Exact"/>
        				<Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratFisher" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="4" Grid.Column="1" />
        				<Rectangle Grid.Row="4" Grid.Column="2" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratFisherLower" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="4" Grid.Column="2" />
        				<Rectangle Grid.Row="4" Grid.Column="3" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratFisherUpper" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="4" Grid.Column="3" />

        				<Rectangle Grid.Row="5" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="5" Grid.Column="0" Text="Adjusted (MH)"/>
        				<Rectangle Grid.Row="5" Grid.Column="1" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratAdjustedOr" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="5" Grid.Column="1" />
        				<Rectangle Grid.Row="5" Grid.Column="2" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratAdjustedOrLower" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="5" Grid.Column="2" />
        				<Rectangle Grid.Row="5" Grid.Column="3" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratAdjustedOrUpper" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="5" Grid.Column="3" />

        				<Rectangle Grid.Row="6" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="6" Grid.Column="0" Text="Adjusted (MLE)"/>
        				<Rectangle Grid.Row="6" Grid.Column="1" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratAdjustedMle" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="6" Grid.Column="1" />
        				<Rectangle Grid.Row="6" Grid.Column="2" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratAdjustedMleLower" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="6" Grid.Column="2" />
        				<Rectangle Grid.Row="6" Grid.Column="3" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratAdjustedMleUpper" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="6" Grid.Column="3" />

        				<TextBlock FontWeight="Bold" Foreground="#FF2B4360" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="8" Grid.Column="0" Text="Risk Ratio"/>
        				<Rectangle Grid.Row="8" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="8" Grid.Column="1" Text="Estimate"/>
        				<Rectangle Grid.Row="8" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="8" Grid.Column="2" Text="Lower"/>
        				<Rectangle Grid.Row="8" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="8" Grid.Column="3" Text="Upper"/>

        				<Rectangle Grid.Row="9" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="9" Grid.Column="0" Text="Crude"/>
        				<Rectangle Grid.Row="9" Grid.Column="1" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratCrudeRr" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="9" Grid.Column="1" />
        				<Rectangle Grid.Row="9" Grid.Column="2" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratCrudeRrLower" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="9" Grid.Column="2" />
        				<Rectangle Grid.Row="9" Grid.Column="3" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratCrudeRrUpper" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="9" Grid.Column="3" />

        				<Rectangle Grid.Row="10" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="10" Grid.Column="0" Text="Adjusted"/>
        				<Rectangle Grid.Row="10" Grid.Column="1" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratAdjustedRr" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="10" Grid.Column="1" />
        				<Rectangle Grid.Row="10" Grid.Column="2" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratAdjustedRrLower" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="10" Grid.Column="2" />
        				<Rectangle Grid.Row="10" Grid.Column="3" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratAdjustedRrUpper" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="10" Grid.Column="3" />

        				<TextBlock FontWeight="Bold" Foreground="Black" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="12" Grid.Column="0" Text="Chi Square"/>
        				<Rectangle Grid.Row="12" Grid.Column="1" Style="{StaticResource HeaderCell}"/>
        				<TextBlock Grid.Row="12" FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" ><Run Text="X"/><Run Typography.Variants="Superscript" Text="2"/></TextBlock>
        				<Rectangle Grid.Row="12" Grid.Column="2" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="12" Grid.Column="2" Text="1 Tailed P"/>
        				<Rectangle Grid.Row="12" Grid.Column="3" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="12" Grid.Column="3" Text="2 Tailed P"/>

        				<Rectangle Grid.Row="13" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="13" Grid.Column="0" Text="Uncorrected&#xa;(MH)"/>
        				<Rectangle Grid.Row="13" Grid.Column="1" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratChiUnc" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="13" Grid.Column="1" />
        				<Rectangle Grid.Row="13" Grid.Column="2" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratChiUnc1Tail" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="13" Grid.Column="2" />
        				<Rectangle Grid.Row="13" Grid.Column="3" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratChiUnc2Tail" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="13" Grid.Column="3" />

        				<Rectangle Grid.Row="14" Grid.Column="0" Style="{StaticResource HeaderCell}"/>
        				<TextBlock FontWeight="Bold" Style="{StaticResource HeaderFont}" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="14" Grid.Column="0" Text="Corrected (MH)"/>
        				<Rectangle Grid.Row="14" Grid.Column="1" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratChiCor" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="14" Grid.Column="1" />
        				<Rectangle Grid.Row="14" Grid.Column="2" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratChiCor1Tail" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="14" Grid.Column="2" />
        				<Rectangle Grid.Row="14" Grid.Column="3" Style="{StaticResource DataCell}"/>
        				<TextBlock Margin="2, 0, 2, 0" x:Name="txtStratChiCor2Tail" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="14" Grid.Column="3" />

        			</Grid>
        			<Button Height="38" x:Name="button1" Width="320" Click="button1_Click" Grid.Column="1" IsEnabled="False" FontSize="16" FontWeight="Bold" VerticalAlignment="Top" Margin="24,0,0,0" HorizontalAlignment="Center" Style="{StaticResource btnprimary}">
        				<StackPanel HorizontalAlignment="Center" Margin="34,0,0,0" VerticalAlignment="Center" Orientation="Horizontal">
        					<Image Height="16" Source="../../Images/calculator1.png" Stretch="Fill" Width="16" VerticalAlignment="Center" Margin="0,0,10,0"/>
        					<TextBlock Text="Calculate" Foreground="White" Height="18" FontWeight="Normal" FontSize="16" Margin="0,-3,2,0" />
        				</StackPanel>
        			</Button>
        		</Grid>

        		<Grid x:Name="waitCursor" Background="#36C4C4C4" Height="Auto" Visibility="Collapsed" d:IsLocked="True">
        			<toolkit:BusyIndicator x:Name="BusyIndicator" IsBusy="True" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="100" />
        		</Grid>
        	</Grid>
        </Grid>
    </Grid>
</UserControl>
